public class Main{
    public static void main(String[] args) {
        System.out.println(sum(100));
    }
    public static int sum(int num){
        if(num<10){
            return num;
        }
        return num%10+sum(num/10);
    }
}